{template common/contentheader} 
<div class="setcontent">
	<div class="settitle">
		<h3>{lang edit_user:admin}-$user['email']</h3>
	</div>
	<div class="setform">
	<form class="pzform" method="post" action="{url admin/userlist?act=edit&submit=1&uid=$user['user_id']}" id="addform">
			
			
			<div class="formgroup">
				<label class="formlabel">{lang th_email:admin}:</label>
				<div class="formcontrol">
					<input type="text" value="$user['email']" disabled/>
				</div>
				<span class="formhelp">{lang th_email:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang th_nickname:admin}:</label>
				<div class="formcontrol">
					<input type="text" value="$user['nickname']" disabled/>
				</div>
				<span class="formhelp">{lang th_nickname:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang th_user_title:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="user_title" value="$user['user_title']"/>
				</div>
				<span class="formhelp">{lang th_user_title:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang user_password:admin}:</label>
				<div class="formcontrol">
					<input type="text" id="password" name="password"/>
				</div>
				<span class="formhelp">{lang not_modify_leave_empty:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang group_system:admin}:</label>
				<div class="formcontrol">
					<select name="sysgid" id="sysgid">
						{loop $systemGroups $g}
						<option value="$g['usergroup_id']"  {if $user['system']['usergroup_key']==$g['usergroup_key']}selected{/if}>$g['usergroup_name']</option> 
						{/loop}
					</select>
				</div>
				<span class="formhelp">{lang group_system:admin}</span>
			</div>
			
			
			<div class="formgroup">
				<label class="formlabel">{lang group_member:admin}:</label>
				<div class="formcontrol">
					<select name="mbmgid" id="mbmgid">
						{loop $memberGroups $g}
						<option value="$g['usergroup_id']"  {if $user['member']['usergroup_key']==$g['usergroup_key']}selected{/if}>$g['usergroup_name']</option> 
						{/loop}
					</select>
				</div>
				<span class="formhelp">{lang group_member:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang group_special:admin}:</label>
				<div class="formcontrol">
					<select name="spegid" id="spegid">
						<option value="0">{lang no_select:admin}</option> 
						{loop $specialGroups $g}
						<option value="$g['usergroup_id']"  {if $user[$g['usergroup_key']]}selected{/if}>$g['usergroup_name']</option> 
						{/loop}
					</select>
				</div>
				<span class="formhelp">{lang group_special:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang th_user_desc:admin}:</label>
				<div class="formcontrol">
					<textarea type="text" id="bio" name="bio" rows="3">$user['bio']</textarea>
				</div>
				<span class="formhelp">{lang th_user_desc:admin}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}